CentOS 6에서 rpm 설치(wkhtmltopdf 설치 기준)
2020년 11월 30일부로 CentOS 6의 지원이 종료되었다. 그래서 yum으로 rpm을 설치시 다음과 같은 오류가 발생한다.
====================================================================
[root@localhost opt]# yum install wkhtmltox-0.12.6-1.centos6.x86_64.rpm
Loaded plugins: fastestmirror
Setting up Install Process
Examining wkhtmltox-0.12.6-1.centos6.x86_64.rpm: 1:wkhtmltox-0.12.6-1.centos6.x86_64
Marking wkhtmltox-0.12.6-1.centos6.x86_64.rpm to be installed
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-sclo-rh
====================================================================
이를 해결하기위해 다음 명령어를 모두 실행한후 위 설치를 다시 실행하면 정상적으로 설치될것이다.(2021.02.15일 정상 작동)
echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
echo "http://vault.centos.org/6.10/sclo/x86_64/rh" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
echo "http://vault.centos.org/6.10/sclo/x86_64/sclo" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt
[root@localhost opt]# yum install wkhtmltox-0.12.6-1.centos6.x86_64.rpm